package com.springboot.demo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.demo.entity.IncomeRecord;
import com.springboot.demo.mapper.IncomeRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IncomeRecordService extends ServiceImpl<IncomeRecordMapper, IncomeRecord> {

    @Autowired
    private IncomeRecordMapper incomeRecordMapper;

    public List<IncomeRecord> listIncomeRecord(){
        return incomeRecordMapper.getIncomeByorder();
    }

}
